<?php
/**
 * Created by JetBrains PhpStorm.
 * User: FUHU
 * Date: 9/28/13
 * Time: 2:41 PM
 * To change this template use File | Settings | File Templates.
 */

namespace Helloworld\Form;

use Zend\Form\Form;

class UserForm extends Form
{
    public function __construct($name = null)
    {
        parent::__construct('users');

        $this->setAttribute('method', 'post');
        $this->add(array(
            'name' => 'id',
            'attributes' => array('type'=>'hidden'),
        ));
        $this->add(array(
            'name' => 'username',
            'attributes' => array('type'=>'text'),
            'options' => array('label' => 'Username: '),
        ));
        $this->add(array(
            'name' => 'password',
            'attributes' => array('type'=>'text'),
            'options' => array('label' => 'Password: '),
        ));
        $this->add(array(
            'name' => 'submit',
            'attributes' => array(
                'type' => 'submit',
                'value' => 'Go',
                'id' => 'summitButton',
                'class'=> 'submit_css',
            ),
        ));
    }
}